import request from '@/utils/request'

// 获得我的店铺订单
export function stOrder(data) {
    return request({
        url: '/beer/order/my-page',
        method: 'GET',
		data
    })
}

// 获得我的店铺订单数量
export function myCount() {
    return request({
        url: '/beer/order/get-my-count',
        method: 'GET',
    })
}

// 接单
export function acceptOrder(data) {
    return request({
        url: '/beer/order/accept?id=' + data.id,
        method: 'POST',
    })
}

// 发货
export function delivery(data) {
    return request({
        url: '/beer/order/delivery?id=' + data.id,
        method: 'PUT',
    })
}